<?php

// No direct access.
defined('_JEXEC') or die;
function modChrome_wrd($module, &$params, &$attribs)
{
	$headerLevel = isset($attribs['headerLevel']) ? (int) $attribs['headerLevel'] : 2;
	if (!empty ($module->content)) { ?>
	<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>">
		<?php if ($module->showtitle) { ?> <h<?php echo $headerLevel; ?>>
				<?php echo $module->title; ?></h<?php echo $headerLevel; ?>>
		<?php }; ?> <?php echo $module->content; ?>
	</div>
	<?php };
}
